#!/usr/bin/env python2.5
"""

  get_parameter_path_example module

       get_module_path 
       parameter_path   contains the path to parameter files
       project_path


   Copyright (C) 2007 Leo Goodstadt

   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License
   as published by the Free Software Foundation; version 2
   of the License

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
"""

# add self to search path for testing
import sys, os, re

# add self to search path for testing
if __name__ == '__main__':
    exe_path = os.path.split(os.path.abspath(sys.argv[0]))[0]
    sys.path.append(os.path.abspath(os.path.join(exe_path, "..", "python_modules")))
    myname = os.path.split(sys.argv[0])[1]
    myname = os.path.splitext(myname)[0];
else:
    myname = __name__

    
from get_parameter_path import get_module_path, parameter_path


#
#   unit test
#

if __name__ == '__main__':
    print "%-20s path = %s" % ("get_parameter_path's", get_module_path('get_parameter_path'))
    print "%-20s path = %s" % ("__main__'s ", get_module_path('__main__'))
    print "%-20s path = %s" % ("parameter ", parameter_path)

